package cn.livingCloud.dto;

import cn.livingCloud.entity.content.Article;

import java.util.List;

/**
 * Created by DingJie  on 2016/1/15.
 */
public class ArticleListDto extends Page<ArticleDto> {
    private String uuid;
    //文章标题
    private String title;
    //是否发布
    private boolean publish;
    //创建人
    private String name;
    private String userId;

    public ArticleListDto() {
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isPublish() {
        return publish;
    }

    public void setPublish(boolean publish) {
        this.publish = publish;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public void addAllList(List itemList) {
        for (Object item : itemList) {
            list.add(new ArticleDto((Article) item));
        }
    }
}
